package listener

import "{{mod}}/app/event/interfaces"
import "fmt"

type {{eventListenerName}} struct {
	EventName   string
	SubjectId   int64
	ExtraParams string
}

func (e {{eventListenerName}}) SetValue(eventName string, subjectId int64, extraParams string) interfaces.EventInterfacer {
	e.EventName = eventName
	e.SubjectId = subjectId
	e.ExtraParams = extraParams
	return e
}

func (e {{eventListenerName}}) Handle() error {
	fmt.Println(" event[ {{eventListenerName}} ] is listen ... ")
	fmt.Printf(" EventExample-->Handle: %+v\n", e)
	// code logic ...

	return nil
}
